/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_selected_prod_attr_value.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_SELECTED_PROD_ATTR_VALUE
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_selected_prod_attr_value.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_SELECTED_PROD_ATTR_VALUE::CTable_PPM_SELECTED_PROD_ATTR_VALUE( )
 :NPCRecordSet( )
{
  setTableName( "PPM_SELECTED_PROD_ATTR_VALUE" );
  prepareTable();
  prepareQuery();
 
  PROD_ATTR_VALUE_ID.setField( "PROD_ATTR_VALUE_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( PROD_ATTR_VALUE_ID );
  makeKeyItem( PROD_ATTR_VALUE_ID ); 
  ATTR_VALUE_ID.setField( "ATTR_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_VALUE_ID );
  PRODUCT_ATTR_ID.setField( "PRODUCT_ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ATTR_ID );
  RULE_TYPE.setField( "RULE_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( RULE_TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  STATE_CD.setField( "STATE_CD", DATA_CHAR, 6, 0 );
  makeTableItem( STATE_CD );
  REMARK.setField( "REMARK", DATA_CHAR, 512, 0 );
  makeTableItem( REMARK );
}


CTable_PPM_SELECTED_PROD_ATTR_VALUE::CTable_PPM_SELECTED_PROD_ATTR_VALUE( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_SELECTED_PROD_ATTR_VALUE" );
  prepareTable();
  prepareQuery();
 
  PROD_ATTR_VALUE_ID.setField( "PROD_ATTR_VALUE_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( PROD_ATTR_VALUE_ID );
  makeKeyItem( PROD_ATTR_VALUE_ID ); 
  ATTR_VALUE_ID.setField( "ATTR_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_VALUE_ID );
  PRODUCT_ATTR_ID.setField( "PRODUCT_ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ATTR_ID );
  RULE_TYPE.setField( "RULE_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( RULE_TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  STATE_CD.setField( "STATE_CD", DATA_CHAR, 6, 0 );
  makeTableItem( STATE_CD );
  REMARK.setField( "REMARK", DATA_CHAR, 512, 0 );
  makeTableItem( REMARK );
}

CTable_PPM_SELECTED_PROD_ATTR_VALUE::~CTable_PPM_SELECTED_PROD_ATTR_VALUE( )
{
    close();
}

